package com.xcity.game.item.effect;

import com.xcity.db.entity.Player;
import com.xcity.game.common.LogCause;
import com.xcity.game.item.GameItem;
import com.xcity.game.item.ItemEffect;
import com.xcity.game.item.listener.BagListener;

/**
 * 护盾
 * @author yang.li
 *
 */
public class ShieldEffect implements ItemEffect {

	@Override
	public boolean effect(Player player, GameItem item, int count, BagListener listener) {
		player.addShield(count, LogCause.USE_ITEM);
		return true;
	}

}
